package cn.hdu.liang.ch2;


import cn.hdu.liang.ch2.OutClass.*;

public class Run {

    public static void main(String[] args) {
        final InnerClass1 in1 = new InnerClass1();
        final InnerClass2 in2 = new InnerClass2();
        Thread t1 = new Thread(() -> in1.method1(in2), "T1");
        Thread t2 = new Thread(in1::method2, "T2");
        Thread t3 = new Thread(in2::method1, "T3");
        t1.start();
        t2.start();
        t3.start();
    }
}
